package com.gxa.uhome.service.impl;

import com.gxa.uhome.mapper.PAAMapper;
import com.gxa.uhome.pojo.PhoneAndAgreement;
import com.gxa.uhome.service.PAAService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author: fanyouzhao
 * @date: 11:37 2021/6/11
 */
@Transactional(rollbackFor = Throwable.class)
@Service("PAAService")
public class PAAServiceImpl implements PAAService {

    @Resource
    private PAAMapper paaMapper;

    @Override
    public PhoneAndAgreement select() {
        return paaMapper.select();
    }

    @Override
    public boolean update(PhoneAndAgreement phoneAndAgreement) {
        return paaMapper.update(phoneAndAgreement);
    }
}
